/**
 * Created by jiangxiaowei on 2017/4/25.
 */

if (!window._babelPolyfill) {
  require("babel-polyfill");
}
import * as React from "react";
import { render } from "react-dom";
import { StoreProvider } from "iflux2";
import TemplateManageMain from "./component/template-manage-main";
import "./style/template-manage.less";
import AppStore from "./store";
import { setCookieHash } from "x-site-util";

declare let window: any;

@StoreProvider(AppStore)
export default class TemplateManage extends React.Component<any, any> {
  constructor(props) {
    super(props);
  }

  componentDidMount() {
    //把角色的hash值放在cookie里，便于建站返回控制台
    setCookieHash();
  }

  render() {
    return (
      <div className="template-manage-main">
        <TemplateManageMain />
        <a href="" id="blank_page" target="blank" />
      </div>
    );
  }
}
